#ifndef		__EVENT_MANAGER__
#define		__EVENT_MANAGER__

#define		FOCUS_WINDOW_CODE		1
#define		FOCUS_WINDOW_EXPLORER		2
#define		FOCUS_WINDOW_WARNING		3

#include	"WindowExplorer.hpp"
#include	"WindowWarning.hpp"
#include	"WindowCode.hpp"

class		EventManager
{
public:
  EventManager(WindowCode *windowCode, WindowExplorer *winExplorer, WindowWarning *winWarning);
  ~EventManager();
  bool	getNextEvent();
  int	getFocusState()const;

private:
  void	manageKeyTab();
  void	manageKeyLeftRight(int ch);
  void	manageKeyArrow(int ch);

private:
  int			_focus;
  WindowCode		*_windowCode;
  WindowExplorer	*_winExplorer;
  WindowWarning		*_winWarning;
};

#endif
